﻿@using res = Resource.Views.Admin.Admin;
@{YQBlog.General.GeneralConfigInfo ci = ViewBag.CI as YQBlog.General.GeneralConfigInfo;}
@section MenuInfo{
<ul> 
    <li>@Html.ActionLink("-"+ res.ManagementHome+" -", "Index", "Admin")</li>
    <li>@Html.ActionLink("-" + res.ContentManagement + " -", "AdminArticle", "Admin", new { tid = 1 }, null)</li>
    <li class="selected">
        <span class="selected-arrow">&nbsp;</span>
        <a href="###">- @res.Configuration -</a>
        <ul>
            <li>@Html.ActionLink(res.BasisSet, "AdminBaseConfig", "Admin")</li>
            <li  class="selected">@Html.ActionLink(res.CategorySettings, "AdminCategorySort", "Admin")</li>
        </ul>
    </li>
    <li>@Html.ActionLink("-" + res.UserManagement + " -", "AdminUserList", "Admin")</li>
</ul>
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div id="mainContent">
        <div id="leftBox">
          <div id="pagePath">
          @res.Location：@res.CategorySettings
          </div>

          <div class="contentBox">
            <div class="contentBoxTop">
              <h3>@res.CategorySettings</h3>
            </div>
            <div class="innerContent">
                    <div id="re">
                            <div class="editor-label">
                            </div>
                            <div class="editor-field">
                               @Html.TextArea("content", ViewBag.Content as string, new { style = "width: 850px; height: 250px" })
                            </div>
                            <p>
                            <input type="image" src="/Content/image/admin/bt_submit.gif" name="BtnSubmit" onclick="Update()">
                            </p>
                    </div>
                    <div class="catelink">@Html.ActionLink(res.UserInterface, "AdminCategorySort", "Admin")</div>
            </div><!--end of #box-3-->
            
          </div>

      </div><!-- end of #leftBox -->
              
  </div><!-- end of #content -->
@section Js{
    <script type="text/javascript">
        function Update() {
            $.post('/Admin/AdminCategory', { content: $('#content').val() }, function (data) {
                $('#re').html(data);
            });
        }
    </script>
}
